CSE 2231 Glossary

Instance Variable

A variable that is declared within a class, but outside any method body. It is unique to each new instance of the class (unique to each object). To maintain encapsulation, Instance Variables are typically set to private with setter and getter methods for access. The instance variables of an object are essentially what makes them unique among other objects of the same type during runtime.

Previous

Next